from core.api_util import api_util
from utils.response_util import process_response


def getAllSales(login_cookies,header_fixture):
    """
    获取 最新数据、信息提醒
    :return:
    """
    response = api_util.get_getAllSales(headers=header_fixture,cookies=login_cookies)
    return process_response(response)

def getTargetInfo(json_data,login_cookies,header_fixture):
    """
    获取销售目标
    :param json_data:
    :return:
    """
    response = api_util.get_getTargetInfo(headers=header_fixture,params=json_data,cookies=login_cookies)
    return process_response(response)

